import service from '@/api'
import service2 from '@/api/baidu'

export function getCampaignReportByDate(params) {
  return service({
    url:'/report/getCampaignReportByDate',
    method:'POST',
    data:params,
  })
}

export function getAccountReportByDate(params) {
  return service({
    url:'/report/getAccountReportByDate',
    method:'POST',
    data:params,
  })
}

export function getAccountReportByHour(params) {
  return service({
    url:'/report/getAccountReportByHour',
    method:'POST',
    data:params,
  })
}

export function getCampaignByAccount(params) {
  return service({
    url:'/report/getCampaignByAccount',
    method:'POST',
    data:params,
  })
}

export function getAccountSummary(params) {
  return service2({
    url:'/report/getAccountSummary',
    method:'POST',
    data:params,
  })
}

export function getLiveDayReport(params) {
  return service2({
    url:'/report/getLiveDayReport',
    method:'POST',
    data:params,
  })
}

export function getNewByOptimizer(params) {
  return service2({
    url:'/report/getNewByOptimizer',
    method:'POST',
    data:params,
  })
}

export function getSummaryByOptimizer(params) {
  return service2({
    url:'/report/getSummaryByOptimizer',
    method:'POST',
    data:params,
  })
}

export function getCampaignCounts(params) {
  return service2({
    url:'/report/getCampaignCounts',
    method:'POST',
    data:params,
  })
}

export function getAllNew(params) {
  return service2({
    url:'/report/getAllNew',
    method:'POST',
    data:params,
  })
}

export function getAllSummary(params) {
  return service2({
    url:'/report/getAllSummary',
    method:'POST',
    data:params,
  })
}

export function getAllCampaignCounts(params) {
  return service2({
    url:'/report/getAllCampaignCounts',
    method:'POST',
    data:params,
  })
}

export function getLiveReport(params) {
  return service({
    url:'/report/getLiveReport',
    method:'POST',
    data:params,
  })
}

export function getTasksByUser(params) {
  return service({
    url:'/index/getTasksByUser',
    method:'POST',
    data:params,
  })
}

